package com.seele.tigerwallet.ui.manager;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestBuilder;
import com.seele.tigerwallet.R;
import com.seele.tigerwallet.model.UserInfo;

public class GlideManager {


    public static void loadUrl(Context context, String url, ImageView imageView) {
        if (context == null) {
            return;
        }


//        Log.e("GlideManager",":pichost::"+ UserInfo.get().pichost);
        GlideApp.with(context).load( UserInfo.get().getUrl(url)).placeholder(R.drawable.error_image).error(R.drawable.error_image).into(imageView);


    }
}
